package com.ruiysoft.entity.logistics;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author AUTO GEN
 * @since 2018-11-17
 */
@TableName("logistics_final_state")
public class LogisticsFinalState extends Model<LogisticsFinalState> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("express_no")
    private String expressNo;


    @TableField("shop_id")
    private Long shopId;
    /**
     * Express Company  Union Code;See table logistics_company_base
     */
    @TableField("union_code")
    private String unionCode;

    @TableField("api_supplier")
    private String apiSupplier;

    @TableField("is_check")
    private Boolean isCheck;

    private String state;

    private String status;

    @TableField("gmt_create")
    private Date gmtCreate;

    @TableField("gmt_modified")
    private Date gmtModified;

    public Integer getId() {
        return id;
    }

    public LogisticsFinalState setId(Integer id) {
        this.id = id;
        return this;
    }
    public String getExpressNo() {
        return expressNo;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public LogisticsFinalState setExpressNo(String expressNo) {
        this.expressNo = expressNo;
        return this;
    }
    public String getUnionCode() {
        return unionCode;
    }

    public LogisticsFinalState setUnionCode(String unionCode) {
        this.unionCode = unionCode;
        return this;
    }
    public String getApiSupplier() {
        return apiSupplier;
    }

    public LogisticsFinalState setApiSupplier(String apiSupplier) {
        this.apiSupplier = apiSupplier;
        return this;
    }
    public Boolean getCheck() {
        return isCheck;
    }

    public LogisticsFinalState setCheck(Boolean isCheck) {
        this.isCheck = isCheck;
        return this;
    }
    public String getState() {
        return state;
    }

    public LogisticsFinalState setState(String state) {
        this.state = state;
        return this;
    }
    public String getStatus() {
        return status;
    }

    public LogisticsFinalState setStatus(String status) {
        this.status = status;
        return this;
    }
    public Date getGmtCreate() {
        return gmtCreate;
    }

    public LogisticsFinalState setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
        return this;
    }
    public Date getGmtModified() {
        return gmtModified;
    }

    public LogisticsFinalState setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LogisticsFinalState{" +
        "id=" + id +
        ", expressNo=" + expressNo +
        ", unionCode=" + unionCode +
        ", apiSupplier=" + apiSupplier +
        ", isCheck=" + isCheck +
        ", state=" + state +
        ", status=" + status +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        "}";
    }
}
